function showyinru(){
	var elem1 = document.getElementById("yinru");
    elem1.style.display = "block";
    
    var elem2 = document.getElementById("weijiesuan");
    elem2.style.display = "none";
    
    var elem3 = document.getElementById("yijiesuan");
    elem3.style.display = "none";
    
    var color1 = document.getElementById("leagueorder-nav1");
    color1.style.color = "#e60012";
    
    var color2 = document.getElementById("leagueorder-nav2");
    color2.style.color = "#878787";
    
    var color3 = document.getElementById("leagueorder-nav3");
    color3.style.color = "#878787";
   
}

function showweijiesuan(){
	var elem1 = document.getElementById("yinru");
    elem1.style.display = "none";
    
    var elem2 = document.getElementById("weijiesuan");
    elem2.style.display = "block";
    
    var elem3 = document.getElementById("yijiesuan");
    elem3.style.display = "none";

    var color1 = document.getElementById("leagueorder-nav1");
    color1.style.color = "#878787";
    
    var color2 = document.getElementById("leagueorder-nav2");
    color2.style.color = "#e60012";
    
    var color3 = document.getElementById("leagueorder-nav3");
    color3.style.color = "#878787";
}

function showyijiesuan(){
	var elem1 = document.getElementById("yinru");
    elem1.style.display = "none";
    
    var elem2 = document.getElementById("weijiesuan");
    elem2.style.display = "none";
    
    var elem3 = document.getElementById("yijiesuan");
    elem3.style.display = "block";

    var color1 = document.getElementById("leagueorder-nav1");
    color1.style.color = "#878787";
    
    var color2 = document.getElementById("leagueorder-nav2");
    color2.style.color = "#878787";
    
    var color3 = document.getElementById("leagueorder-nav3");
    color3.style.color = "#e60012";
}



function showgeren(){
	var elem1 = document.getElementById("geren");
    elem1.style.display = "block";
    var elem2 = document.getElementById("qiye");
    elem2.style.display = "none";
    
    var color1 = document.getElementById("leagueregister-title1");
    color1.style.color = "#eb413d";
    var color2 = document.getElementById("leagueregister-title2");
    color2.style.color = "#444f58";
    
}

function showqiye(){
	var elem1 = document.getElementById("geren");
    elem1.style.display = "none";
    var elem2 = document.getElementById("qiye");
    elem2.style.display = "block";
    
    var color1 = document.getElementById("leagueregister-title1");
    color1.style.color = "#444f58";
    var color2 = document.getElementById("leagueregister-title2");
    color2.style.color = "#eb413d";
    
}



function showtuihuo(){
	var elem1 = document.getElementById("tuihuo");
    elem1.style.display = "block";
    
    var elem2 = document.getElementById("tuikuan");
    elem2.style.display = "none";
    
    
    var color1 = document.getElementById("tuihuo1");
    color1.style.color = "#EB413D";
    
    var color2 = document.getElementById("tuikuan1");
    color2.style.color = "#000000";
    

    
    
}
function showtuikuan(){
	var elem1 = document.getElementById("tuikuan");
    elem1.style.display = "block";
    
    var elem2 = document.getElementById("tuihuo");
    elem2.style.display = "none";
    
    
    var color1 = document.getElementById("tuihuo1");
    color1.style.color = "#000000";
    
    var color2 = document.getElementById("tuikuan1");
    color2.style.color = "#EB413D";
    
    
}

function changecolorS(){
	var S = document.getElementById("S");
var M = document.getElementById("M");
var L = document.getElementById("L");
var XL = document.getElementById("XL");
var XXL = document.getElementById("XXL");

	S.style.color="#444f58";
	M.style.color="#444f58";
	L.style.color="#444f58";
	XL.style.color="#444f58";
	XXL.style.color="#444f58";
	S.style.color="#eb413d";
	
	S.style.border="1px solid #e7e7e7";
	M.style.border="1px solid #e7e7e7";
	L.style.border="1px solid #e7e7e7";
	XL.style.border="1px solid #e7e7e7";
	XXL.style.border="1px solid #e7e7e7";
	S.style.border="2px solid #eb413d";
}

function changecolorM(){
	var S = document.getElementById("S");
var M = document.getElementById("M");
var L = document.getElementById("L");
var XL = document.getElementById("XL");
var XXL = document.getElementById("XXL");

	S.style.color="#444f58";
	M.style.color="#444f58";
	L.style.color="#444f58";
	XL.style.color="#444f58";
	XXL.style.color="#444f58";
	M.style.color="#eb413d";
	
	S.style.border="1px solid #e7e7e7";
	M.style.border="1px solid #e7e7e7";
	L.style.border="1px solid #e7e7e7";
	XL.style.border="1px solid #e7e7e7";
	XXL.style.border="1px solid #e7e7e7";
	M.style.border="2px solid #eb413d";
}
function changecolorL(){
	var S = document.getElementById("S");
var M = document.getElementById("M");
var L = document.getElementById("L");
var XL = document.getElementById("XL");
var XXL = document.getElementById("XXL");

	S.style.color="#444f58";
	M.style.color="#444f58";
	L.style.color="#444f58";
	XL.style.color="#444f58";
	XXL.style.color="#444f58";
	L.style.color="#eb413d";
	
	S.style.border="1px solid #e7e7e7";
	M.style.border="1px solid #e7e7e7";
	L.style.border="1px solid #e7e7e7";
	XL.style.border="1px solid #e7e7e7";
	XXL.style.border="1px solid #e7e7e7";
	L.style.border="2px solid #eb413d";
}
function changecolorXL(){
	var S = document.getElementById("S");
var M = document.getElementById("M");
var L = document.getElementById("L");
var XL = document.getElementById("XL");
var XXL = document.getElementById("XXL");

	S.style.color="#444f58";
	M.style.color="#444f58";
	L.style.color="#444f58";
	XL.style.color="#444f58";
	XXL.style.color="#444f58";
	XL.style.color="#eb413d";
	
		S.style.border="1px solid #e7e7e7";
	M.style.border="1px solid #e7e7e7";
	L.style.border="1px solid #e7e7e7";
	XL.style.border="1px solid #e7e7e7";
	XXL.style.border="1px solid #e7e7e7";
	XL.style.border="2px solid #eb413d";

}
function changecolorXXL(){
	var S = document.getElementById("S");
var M = document.getElementById("M");
var L = document.getElementById("L");
var XL = document.getElementById("XL");
var XXL = document.getElementById("XXL");

	S.style.color="#444f58";
	M.style.color="#444f58";
	L.style.color="#444f58";
	XL.style.color="#444f58";
	XXL.style.color="#444f58";
	XXL.style.color="#eb413d";
	
	S.style.border="1px solid #e7e7e7";
	M.style.border="1px solid #e7e7e7";
	L.style.border="1px solid #e7e7e7";
	XL.style.border="1px solid #e7e7e7";
	XXL.style.border="1px solid #e7e7e7";
	XXL.style.border="2px solid #eb413d";
}



function jian(){
	var a1 = document.getElementById("shuliang");
	var a2=parseInt(a1.value);
	a2=a2-1;
//	alert(a2)
	if(a2>0){
		a1.value=a2;
	}
}
function jia(){
	var a1 = document.getElementById("shuliang");
	var a2=parseInt(a1.value);
	a2=a2+1;
//	alert(a2)
	if(a2<100){
		a1.value=a2;
	}
}



function showshangping(){
	var elem1 = document.getElementById("shangping");
    elem1.style.display = "block";
    var elem2 = document.getElementById("pingjia");
    elem2.style.display = "none";
    
    
    var color1 = document.getElementById("showshangping");
    color1.style.color = "#eb413d";
    var color2 = document.getElementById("showpingjia");
    color2.style.color = "#444f58";
}
function showpingjia(){
	var elem1 = document.getElementById("shangping");
    elem1.style.display = "none";
    var elem2 = document.getElementById("pingjia");
    elem2.style.display = "block";
    
    
    var color1 = document.getElementById("showshangping");
    color1.style.color = "#444f58";
    var color2 = document.getElementById("showpingjia");
    color2.style.color = "#eb413d";
}



function checkit(){
	var se=confirm("确定取消订单吗？");
if (se==true)
  {
  location='../trade/indent6.html';
  }
else
  {
  
  }
}

function checkshanchu($a){
	var $b=parseInt($a);
	var e=document.getElementById("myorder-content-item"+$b);
	var se=confirm("确认删除记录吗？");
	if(se==true){
		e.style.display="none";
	}
	else{
		
	}
}


function buyjian($b){
	var a1 = document.getElementById("buy-number"+$b);
	var a2=parseInt(a1.value);
	a2=a2-1;
//	alert(a2)
	if(a2>0){
		a1.value=a2;
	}
}
function buyjia($b){
	var a1 = document.getElementById("buy-number"+$b);
	var a2=parseInt(a1.value);
	a2=a2+1;
//	alert(a2)
	if(a2<100){
		a1.value=a2;
	}
}

function deleteit($b){
	var se=confirm("确认删除该商品吗？")
	if(se==true){
		var elem1 = document.getElementById("buy-table-item"+$b);
    	elem1.style.display = "none";
    	var e2 = document.getElementById("buy-table-item1");
    	var e3 = document.getElementById("buy-table-item2");
    	if(e2.style.display=="none"&&e3.style.display=="none"){
    		var e4 = document.getElementById("buy-content1");
    		var e5 = document.getElementById("buy-content2");
    		e4.style.display = "none";
    		e5.style.display = "block";
    	}
	}
}
